package com.tm.media.utils.utils;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @类名 PageUtil
 * @说明
 * @创建人 liuyuhao
 * @创建时间 2022/7/49:16
 **/
@Data
public class PageUtil<P> {

    //总条数
    @TableField(exist = false)
    private Long total;
    //当前页
    @TableField(exist = false)
    private Integer page;
    //每页条数
    @TableField(exist = false)
    private Integer size;
    //开始下标
    @TableField(exist = false)
    private Integer index;
    //数据
    @TableField(exist = false)
    private Object data;
    @TableField(exist = false)
    private Integer status;
    @TableField(exist = false)
    private Integer is_collected;
    @TableField(exist = false)
    private Integer channel_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(exist = false)
    private Date begin_pubdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(exist = false)
    private Date end_pubdate;
}
